package com.markul.android.ui.dialog

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.markul.android.logic.model.Repository
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch

class DialogViewModel:ViewModel() {

    fun deleteAlbumAndPhotos(albumId:Int) {
        viewModelScope.launch(Dispatchers.IO) {
            Repository.deleteAlbumAndPhotos(albumId)
        }
    }
}